//
//  ConnectModel.h
//  ProjectForA
//
//  Created by apple on 14/11/20.
//  Copyright (c) 2014年 hmengwei. All rights reserved.
//

#import <Foundation/Foundation.h>
//网络接口
#define DestinationUrl @"http://api.breadtrip.com/destination/v3/"
typedef void (^FinishedBlock)(NSData *data);

@interface ConnectModel : NSObject<NSURLConnectionDataDelegate>

@property (nonatomic, retain) NSMutableData *receiveData;
@property (nonatomic, copy) NSString *urlName;

@property (nonatomic, copy)FinishedBlock finishBlock;
+ (void)getConnectWithUrl:(NSString *)urlstr dic:(NSMutableDictionary *)dic block:(FinishedBlock)block;

+ (NSString *)urlWithUrlStr:(NSString *)urlstr parmaters:(NSDictionary *)parmaters;
- (void)startWithUrl:(NSString *)urlstr parmaters:(NSDictionary *)parmaters;
@end
